#ifndef SERIAL_H
#define SERIAL_H

#include "device/Device.h"

#define SERIAL_BASE 0xA00003F8
#define SERIAL_SIZE 8

class Serial : public Device {
public:
    bool read(word_t start_addr, size_t length, uint8_t* buffer) override;
    bool write(word_t start_addr, size_t length, const uint8_t* buffer) override;
    void update() override;
};

#endif
